﻿$(function(){//延迟加载
	$('#dajuxiang').combobox({
		onChange:function(newValue,oldValue){
			if(newValue==''){				
				$('#juxiang').combobox({					
					disabled:true
				});
				$('#juxiang').combobox('clear');
				$('#jifang').combobox({
					disabled:true
				});
				$('#jifang').combobox('clear');
			}else{
				$('#jifang').combobox({
					disabled:true
				});
				$('#juxiang').combobox({
					value:'请选择',
					disabled:false,
					valueField: 'jxId',    
			        textField: 'jxname',
					url:"showjx?djxId="+newValue,
				});
			}
		}
	});
	$('#jifang').combobox();
	$('#juxiang').combobox({
		onChange:function(newValue,oldValue){
			if(newValue==''){				
				$('#jifang').combobox({
					disabled:true
				});
				$('#jifang').combobox('clear');
			}else{
				$('#jifang').combobox({
					value:'请选择',
					disabled:false,
					valueField:'jfId',
					textField:'jfname',
					url:"showjf?jxId="+newValue
				})
			}
		}
	});	
});